<html>

<head>
<link rel="stylesheet" type="text/css" href="css/mainpage.css" />
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>

<body>
<?php
$host="localhost"; 
$username="root"; 
$password=""; 
$db_name="incofarming_db";  
$tbl_name="koperasi";

mysql_connect("$host", "$username", "$password")or die("cannot connect server "); 
mysql_select_db("$db_name")or die("cannot select DB");
$res_koperasi = mysql_query("SELECT * FROM $tbl_name WHERE IDKOPERASI = 4");

?>

<div id="container">
	<div id="header">
		
		<div id="logo">
			<p>&nbsp;</p>
			<p>INCOFARMING </p>
		</div>

    	<div id="tab">
		  <ul class="nav nav-tabs navbar-inverse">
			<li><a href="#">DASHBOARD</a></li>
			<li><a href="#">Manajemen Profil</a></li>
			<li class="active"><a href="">Manajemen Produk</a></li>
		  </ul>
		</div>
		
    </div>
     <div class="row-fluid">
            <ul class="thumbnails">
              <li class="span4">
                <div class="thumbnail">
                  <img src="img/gambar.jpg"" alt="" width="260" height="180" />
                  <div class="caption">
                    
					<?
			  while ($row = mysql_fetch_array($res_koperasi)) {
				  $id = $row['IDKOPERASI'];
				  echo '<h3><a href="Functions/editkoperasi.php?idkoperasi='.$id.'">';
				  echo ($row["NAMAKOPERASI"]);
	  		
                echo '<p><a href="Functions/editkoperasi.php?idkoperasi='.$id.'" class="btn btn-primary">Hapus Koperasi</a></p>'; 
				
				} 
				?>
                   
                  </div>
                </div>
              </li>
            
            
              <li class="span4">
                <div class="thumbnail">
                  <img src="img/padi.jpg" alt="" width="260" height="180" />
                  <div class="caption">
                    <h3><a href="editproduk_view.php">
					<?
			  while ($row1 = mysql_fetch_assoc($res_prod)) { echo ($row1["NAMAKOPERASI"]);}
			  		?></a></h3>
                <p><a href="#" class="btn btn-primary">Hapus Produk</a></p>   
                   
                  </div>
                </div>
              </li>
              <li class="span4">
                <div class="thumbnail">
                  <img src="img/padi.jpg" alt="" width="260" height="180" />
                  <div class="caption">
                    <h3><a href="#">
					<?
			  while ($row2 = mysql_fetch_assoc($res_koperasi)) {echo ($row2["NAMAKOPERASI"]);
}
					?></a></h3>
                <p><a href="#" class="btn btn-primary">Hapus Koperasi</a></p>   
                   
                  </div>
                </div>
              </li>
            </ul>
      </div>
   
</div>

<script src="js/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-carousel.js"></script>
<script src="js/jquery.js"></script>
<script src="js/bootstrap-dropdown.js"></script>
<script type="text/javascript" src="js/dropdown.js"></script>

	
</body>

</html>